package com.heima.controller;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmLoginDto;
import com.heima.service.WMUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author chenshan
 */
@RestController
@RequestMapping("login")
public class WMUserController {
    @Autowired
    private WMUserService wmService;

    /**
     * APP端用户登录接口
     */
    @PostMapping("in")
    public ResponseResult login(@RequestBody WmLoginDto loginDto) {
        return wmService.loginAuth(loginDto);
    }
}
